<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title></title>
		<script>
			var d=new Date();
			alert(d.toLocaleString());
			var str=d.getFullYear()+"-"+(d.getMonth()+1)+"-"+d.getDate();
			alert(str);
			d.setMonth(49);
			alert(d);
		</script>
	</head>
	<body>
	</body>
</html>
